package com.changgou.entity;

import java.util.List;

/**
 * @Author: cxy
 * @Date: 2020/10/30 10:41
 * @Desc: 分页结果
 * @Version: 1.0.0
 */
public class PageResult<T> {
    /**
     * 总记录数
     */
    private Long total;
    /**
     * 记录
     */
    private List<T> rows;

    //<editor-fold desc="自动生成构造函数">
    public PageResult(Long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public PageResult() {
    }
    //</editor-fold>

    //<editor-fold desc="自动生成getter 和 setter">
    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
    //</editor-fold>
}
